package homework.homeworkJune_26th.第二题;

public class Main {
    public static void main(String[] args) {
        RunnbleDemo demo1 = new RunnbleDemo();
        RunnbleDemo demo2 = new RunnbleDemo();
        RunnbleDemo demo3 = new RunnbleDemo();
        Thread thread1 = new Thread(demo1);
        Thread thread2 = new Thread(demo2);
        Thread thread3 = new Thread(demo3);
        thread1.setPriority(1);
        thread2.setPriority(Thread.MAX_PRIORITY);
        thread3.setPriority(Thread.NORM_PRIORITY);
        thread1.start();
        thread2.start();
        thread3.start();
    }
}
